<template>
	<div>
		<h4>姓名：{{name}}</h4>
		<h4>年龄：{{age}}</h4>
		<button @click="showInfo">更多</button>
		<button @click="changeAge">年龄</button>
	</div>
</template>
<script>
export default {
  props: ['name', 'age', 'fn'],
  methods: {
    showInfo() {
      this.$emit('show');
    },
    changeAge() {
      this.fn();
    },
  },
};
</script>